home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1412.dms / var1412.adf / JACOsub / scripts / demo.js next >
Text File  |  1990-09-13  |  5KB  |  110 lines

  1. # Demonstration script for JACOsub subtitle playing software.
  2.  
  3. # This script demonstrates the flexibility of the JACOsub file format,
  4. # going through nearly all of the features available.
  5.  
  6. # The JACOsub script player itself is compatible with TurboTitler and
  7. # Arizona Anime Society scripts; however, if you want to use some of the
  8. # more advanced features, like italics, color control, and text
  9. # positioning, you need to use the jconvert utility to convert your
  10. # script to JACOsub format.
  11.  
  12. # Now let's begin....
  13.  
  14.   # First, let's set up some defaults.  Time units default to SMPTE (1/30
  15.   # second units.  We'll use 1/100 seconds because it's simpler to
  16.   # understand for now.
  17.  
  18.  #T100           (this sets time units to 1/100 second)
  19.  #R2.2           (lengthen total playing duration by 2.20 seconds)
  20.  
  21.  # Let's change a default colors while we're at it....
  22.  #P1 0 14 0     (set color palette 1 to green - for "slow" text)
  23.  
  24.   # Now, show an introductory title centered on the screen for 4 seconds.
  25.   # This line demonstrates the newline escape character, or manual
  26.   # wordwrap.  The new substrings created will also be word-wrapped
  27.   # automatically if they don't fit within the default width limits.
  28.   # You can always turn wordwrapping off for a line with the W0 directive.
  29.  
  30. 0:00:00.00 0:00:04.00 VM JACOsub\n\nThis script demonstrates some of the capabilities of JACOsub.
  31.  
  32.   # The next 3 lines demonstrate vertical positioning and overlapping time
  33.   # ranges.  Notice how the times for each of the lines are set.  Only
  34.   # between times 5.33 and 6.33, all 3 lines are present on the screen.
  35.  
  36. 0:00:04.00 0:00:06.33 VT Text may be positioned at the top,
  37. 0:00:04.66 0:00:06.66 VM middle,
  38. 0:00:05.33 0:00:06.99 VB or bottom of the screen.
  39.  
  40.   # The next line shows how you can insert comments inside the text.  This
  41.   # is useful for making notes about translations and character names when
  42.   # subtitling foreign films.
  43.  
  44. 0:00:07.40 0:00:10.80 VM {this is a comment} (And, as you just saw, {another comment} timing ranges for different lines of text may overlap.)
  45.  
  46.   # Now we demonstrate left/right/center justification
  47.  
  48. 0:00:11.00 0:00:13.50 JL Within margin constraints that you set,\ntext may be left justified,
  49. 0:00:13.50 0:00:14.75 JC {the JC is reduntant - it's the default} center justified,
  50. 0:00:14.75 0:00:16.00 JR and also\nright justified.
  51.  
  52.   # Here we show what you can do with margin settings.  The first line
  53.   # sets the right margin to 33% of the screen (left margin is at 0%), and
  54.   # the second line sets the left margin at 50% of the screen (right
  55.   # margin is at 100%).  We also demonstrate two fonts on the same screen.
  56.  
  57. 0:00:15.60 0:00:22.00 VTHR33   You can, for example, set your margins so that text is confined to the left 1/3 of the screen.
  58. 0:00:17.50 0:00:22.00 VBHL50F1 And you can place other text (with a different font, even!) elsewhere by setting different margins for it.
  59.  
  60.   # Now we demonstrate different text styles and colors.  Notice here we
  61.   # use the VL directive to position the text on different lines.
  62.  
  63. 0:00:22.30 0:00:28.01 VL3 You may have different text styles\n(Normal, \BBold, \IItalic\N)
  64. 0:00:22.30 0:00:28.01 VL5 and different \C1colors
  65.                       # Notice here the default text color has been
  66.                       # changed to 1 and restored to 3 inside the text.
  67. 0:00:24.00 0:00:28.01 CF1VL7 all \C3mixed \C1\Itogether!
  68.  
  69.   # Here's a trick.  We will rapidly cycle through some blank screens
  70.   # so that the current display will "catch up" to the background display
  71.   # buffer being generated.  We use color 1 text here, which is slow.
  72.  
  73. 0:00:28.01 0:00:28.02 D ~
  74. 0:00:28.02 0:00:28.03 D ~
  75. 0:00:28.03 0:00:28.04 D ~
  76. 0:00:28.04 0:00:28.05 D ~
  77. 0:00:28.05 0:00:32.00 CF1VM Here the display was intentionally "caught up" to the background generation, to show how slowly color 1 text is generated in the background.
  78.  
  79.   # Now explain to the user why this happened.  Here we also demonstrate
  80.   # the VU directive to show how you can continue a long line of text
  81.   # underneath previous one.
  82.  
  83.   # Here we also demonstrate background shading,
  84.   # in the second "continued" line.
  85.  
  86. 0:00:32.30 0:00:43.00 GB63T120CF1VM You will see that sort of foreground generation if you use a lot of ``slow'' color 1 text.\n\C3(Color 3 text is very fast.)
  87. 0:00:32.30 0:00:43.00 CF1VUCS8 \n\nPlan your timings so the display won't catch up to the view being generated in the background.
  88.  
  89.   # Demonstrate backgrounds that are opaque to the genlock, by specifying
  90.   # a text background color.  This will clear the whole screen to that
  91.   # color before any text is drawn on it.
  92.  
  93. 0:00:43.00 0:00:50.00 CB1VM You can change the screen background color, too.\n\nThis is useful if you want to make an opaque screen when using a genlock.
  94.  
  95.   # Demonstrate the #Include command.
  96.  
  97. #I 0:00:50.00 idemo  # include another script offset by 50 seconds
  98.  
  99.   # Display a sayonara message:
  100.  
  101. 0:00:58.00 0:01:03.00 VM OK, this script will be finished when the screen goes blank.\n\nPress any key to exit.
  102.  
  103.  
  104. # You probably noticed that most of the lines above used the VM (Vertical
  105. # Middle) directive.  We could have made this the default, by specifying
  106. # the global command #DVM near the beginning of the file.  Then we
  107. # wouldn't have had to specify VM on each line, but we would have had to
  108. # specify VB (the former default) for those lines positioned at the bottom
  109. # of the screen.
  110.